package basic;

public class DogTest2 {
    public static void main(String[] args) {
        Dog d = new Dog();
        d.bark();

        int a = 10;
        int b = a;
        a = 30;
        System.out.println("a = " + a);
        System.out.println("b = " + b);

        Dog d1 = new Dog();
        d1.size = 20;
        Dog d2 = new Dog();
        d2.size = 30;
        System.out.println("d1.size = " + d1.size);
        System.out.println("d2.size = " + d2.size);
    }
}
